package com.obtk.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 功能说明
 *
 * @author Mr.Sun
 * @date 2023-04-03 16:49:11
 */
public class OrderLine implements Serializable {
//    `odd_id` INT PRIMARY KEY AUTO_INCREMENT COMMENT 'id',
//  `odd_order_id` INT NOT NULL COMMENT '订单编号',-- 关联订单表（cst_order） odr_id
//  `odd_prod_id` INT NOT NULL COMMENT '产品编号',-- 关联产品表（pro_product） prod_id 1
//  `odd_count` INT NOT NULL COMMENT '数量',-- 关联库存表(pro_storage)   stk_warehouse 1
//  `odd_unit` VARCHAR(10) COMMENT'单位',--  关联产品表（pro_product） prod_unit    1
//  `odd_price` DECIMAL COMMENT '价格'  --  关联产品表（pro_product） prod_price 168
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer oddId;
    private String oddOrderId;
    private String oddProdId;
    private Integer oddCount;
    private String oddUnit;
    private Double oddPrice;
    private Integer oddStatus;

    public OrderLine() {
    }

    @Override
    public String toString() {
        return "OrderLine{" +
                "oddId=" + oddId +
                ", oddOrderId=" + oddOrderId +
                ", oddProdId=" + oddProdId +
                ", oddCount=" + oddCount +
                ", oddUnit='" + oddUnit + '\'' +
                ", oddPrice=" + oddPrice +
                ", oddStatus=" + oddStatus +
                '}';
    }

    public Integer getOddId() {
        return oddId;
    }

    public String getOddOrderId() {
        return oddOrderId;
    }

    public String getOddProdId() {
        return oddProdId;
    }

    public void setOddProdId(String oddProdId) {
        this.oddProdId = oddProdId;
    }

    public void setOddOrderId(String oddOrderId) {
        this.oddOrderId = oddOrderId;
    }

    public void setOddId(Integer oddId) {
        this.oddId = oddId;
    }





    public Integer getOddCount() {
        return oddCount;
    }

    public void setOddCount(Integer oddCount) {
        this.oddCount = oddCount;
    }

    public String getOddUnit() {
        return oddUnit;
    }

    public void setOddUnit(String oddUnit) {
        this.oddUnit = oddUnit;
    }

    public Double getOddPrice() {
        return oddPrice;
    }

    public void setOddPrice(Double oddPrice) {
        this.oddPrice = oddPrice;
    }

    public Integer getOddStatus() {
        return oddStatus;
    }

    public void setOddStatus(Integer oddStatus) {
        this.oddStatus = oddStatus;
    }
}
